﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:m="clr-namespace:BaseTypesControlLib.Model"
                    >
    <DataTemplate DataType="{x:Type m:ImageSubtitleListItem}">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Rectangle Width="40" Height="50" Margin="2"
                       HorizontalAlignment="Center" VerticalAlignment="Center"
                       Fill="#44ff0000" Stroke="Black" StrokeThickness="1"/>
            <StackPanel VerticalAlignment="Center" Grid.Column="1" Margin="5,2,2,2">
                <TextBlock Text="Title" FontSize="20"/>
                <TextBlock Text="Subtitle" FontSize="16" Foreground="#444444"
                           Margin="2,0,0,0"
                           />
            </StackPanel>
            <Rectangle Grid.Row="1" Grid.ColumnSpan="2" Height="1" Fill="DarkRed"/>
         </Grid>
    </DataTemplate>
    <DataTemplate DataType="{x:Type m:ImageTitleListItem}">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto"/>
                <ColumnDefinition />
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Rectangle Width="40" Height="50" Margin="2"
                       HorizontalAlignment="Center" VerticalAlignment="Center"
                       Fill="#44ff0000" Stroke="Black" StrokeThickness="1"/>
            <TextBlock Text="Title" FontSize="20"  Margin="5,2,2,2"
                       VerticalAlignment="Center" Grid.Column="1" />
            <Rectangle Grid.Row="1" Grid.ColumnSpan="2" Height="1" Fill="DarkRed"/>
        </Grid>
    </DataTemplate>
    <DataTemplate DataType="{x:Type m:SubtitleListItem}">
        <StackPanel>
            <TextBlock Text="Title" Margin="2,0,0,0" FontSize="20"/>
            <TextBlock Text="Subtitle" Margin="5,0,0,0" 
                       FontSize="16" Foreground="#444444"
                       TextWrapping="Wrap"/>
            <Rectangle Height="1" Fill="DarkRed"/>
        </StackPanel>
    </DataTemplate>
    <DataTemplate DataType="{x:Type m:RightImageSubtitleListItem}">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition Width="Auto"/>                
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Rectangle Width="40" Height="50" Grid.Column="1" Margin="2"
                       HorizontalAlignment="Center" VerticalAlignment="Center"
                       Fill="#44ff0000" Stroke="Black" StrokeThickness="1"/>
            <StackPanel VerticalAlignment="Center" Margin="2,2,5,2">
                <TextBlock Text="Title" FontSize="20"/>
                <TextBlock Text="Subtitle" FontSize="16" Foreground="#444444"
                           Margin="2,0,0,0"
                           />
            </StackPanel>
            <Rectangle Grid.Row="1" Grid.ColumnSpan="2" Height="1" Fill="DarkRed"/>
        </Grid>
    </DataTemplate>
    <DataTemplate DataType="{x:Type m:RightImageTitleListItem}">
        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition />
                <ColumnDefinition Width="Auto"/>                
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition />
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Rectangle Width="40" Height="50" Grid.Column="1" Margin="2"
                       HorizontalAlignment="Center" VerticalAlignment="Center"
                       Fill="#44ff0000" Stroke="Black" StrokeThickness="1"/>
            <TextBlock Text="Title" VerticalAlignment="Center" FontSize="20"
                       Margin="2,2,5,2"/>
            <Rectangle Grid.Row="1" Grid.ColumnSpan="2" Height="1" Fill="DarkRed"/>
        </Grid>
    </DataTemplate>
</ResourceDictionary>